<?php
include_once("../sql_connect.php");
include_once("../msg_redirect.php");
?>
<?php
$u_no = $_COOKIE['u_no'];
$u_name = $_POST[u_nickname];
$u_realname = $_POST[u_realname];
$u_dept = $_POST[u_dept];
$u_sex = $_POST[u_sex];
$u_year = $_POST[u_year];
$u_month = $_POST[u_month];
$u_day = $_POST[u_day];
$u_qq = $_POST[u_qq];
$u_mydesc = $_POST[u_mydesc];

	
/*修改用户细节表的信息*/
mysql_query("update user_detail set u_truename='$u_realname',u_dept='$u_dept',u_sex='$u_sex',
u_year='$u_year',u_month='$u_month',u_day='$u_day',u_qq='$u_qq',u_mydesc='$u_mydesc' where u_no='$u_no'",$connection);
	
/*修改昵称*/
mysql_query("UPDATE user_info SET u_name='$u_name' WHERE u_no='$u_no'",$connection);	


?>